package deom2;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.addLast(1);
        myArrayList.addLast(2);
        myArrayList.addLast(3);
        myArrayList.addLast(4);
        myArrayList.addLast(5);
        myArrayList.print();

        myArrayList.addFont(5);
        myArrayList.addFont(4);
        myArrayList.addFont(3);
        myArrayList.addFont(2);
        myArrayList.addFont(1);
        myArrayList.print();

        myArrayList.addPos(3,9);
        myArrayList.addPos(0,9);
        myArrayList.addPos(12,9);
        myArrayList.addFont(9);
        myArrayList.addFont(9);
        myArrayList.addFont(9);
        myArrayList.print();

        myArrayList.remove(5);
        myArrayList.print();

        myArrayList.removeAll(9);
        myArrayList.print();

        myArrayList.addPos(3,9);
        myArrayList.addPos(3,9);
        myArrayList.addPos(3,9);
        myArrayList.addFont(9);
        myArrayList.addLast(9);
        myArrayList.print();

        myArrayList.setVal(9,8);
        myArrayList.print();
    }
}
